package hfdp.chp06.chp0605;

/**
 * Created by chei on 2016/8/31.
 */
public class TV {

    private String location;

    public TV(String location) {
        this.location = location;
    }

    public void on(){
        System.out.println(location + " TV is on");
    }

    public void off(){
        System.out.println(location + " TV is off");
    }
}
